package com.study.gupao.decorator.v2;

/**
 * @ClassName: MobileDecorator
 * @Description:
 * @author: Administrator
 * @Date: 2019-03-18 15:28
 */
public abstract class MobileDecorator extends AbstMobile {

    private AbstMobile mobile;

    public MobileDecorator(AbstMobile mobile) {
        this.mobile = mobile;
    }

    protected abstract void doSomething();

    @Override
    protected String name() {
        return this.mobile.name();
    }

    @Override
    protected int price() {
        return this.mobile.price();
    }
}
